package cn.ylz.ylmall.content.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.util.Date;


@Data
public class Content {
    @TableId(type = IdType.AUTO)
    private Long id; //文章或视频id
    private Integer type; //发布类型
    private String title; //文章或视频标题
    private String content; //文章或视频内容
    private Long createBy; //发布人id
    private Date createTime; //发布时间
    private String imgUrl;//封面图片地址
    private String videoUrl;//视频地址
    private Long updateBy; //修改人id
    private Date updateTime; //修改时间
    private Integer viewCount; //浏览数
    private Integer likeCount; //点赞数
    private Integer commentCount; //评论数
    private Integer collectCount; //收藏数
    private String brief; //文章简介
    private String videoDescribe; //视频简介
    private Integer categoryId; //二级分类id

}
